import java.util.Scanner;

/**
 * @ClassName StringTest02
 * @Description 键盘录入一个字符串，统计字符串中大小写字母及数字字符个数
 * @Author Li
 * @Date 2022/8/1 8:58
 * @ModifyDate 2022/8/1 8:58
 * @Version 1.0
 */
public class StringTest02 {
    public static void main(String[] args) {
        // 键盘录入一个字符串数据
        Scanner sc = new Scanner(System.in);
        String input = sc.next();

        // 定义四个统计变量，初始化值都是0
        int countUpper = 0;
        int countLower = 0;
        int countNumber = 0;
        int countOther = 0;

        // 将输入的字符串数组转换为字符型数组然后遍历
        char[] charArray = input.toCharArray();
        for (int i = 0; i < charArray.length; i++) {
            // 拿字符进行判断
            char ch = charArray[i];
            if ('A' <= ch && ch <= 'Z') {
                countUpper++;
            } else if ('a' <= ch && ch <= 'z') {
                countLower++;
            } else if ('0' <= ch && ch <= '9') {
                countNumber++;
            } else {
                countOther++;
            }
        }
        System.out.println("大写字母个数：" + countUpper);
        System.out.println("小写字母个数：" + countLower);
        System.out.println("数字个数：" + countNumber);
        System.out.println("其他字符个数：" + countOther);
    }
}
